﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PortalsGallery.SopKnowledgeBase.Areas.SopContent
{
    public class TopicManager : ITopicManager
    {
        public List<Topic> GetMainTopics()
        {
            var l = new List<Topic>
            {
                new Topic
                {
                    Name = "MyName",
                    Description = "My Description today. It is Tuesday morning, a great day!",
                    Id = 1,
                    DefaultDisplayMode = DisplayModeType.Collapsed
                },
                new Topic
                {
                    Name = "MyName 2",
                    Description = "My Description 2 today. It is Tuesday morning, a great day!",
                    Id = 2,
                    DefaultDisplayMode = DisplayModeType.Collapsed
                }
            };
            return l;
        }
        public List<Topic> GetSubtopics(int parentTopicId)
        {
            var l = new List<Topic>
            {
                new Topic
                {
                    Name = "My SubTopic Name",
                    Description = "My Description today. It is Tuesday morning, a great day!",
                    Id = 11,
                    DefaultDisplayMode = DisplayModeType.Collapsed
                },
                new Topic
                {
                    Name = "My SubTopic Name 2",
                    Description = "My Description 2 today. It is Tuesday morning, a great day!",
                    Id = 22,
                    DefaultDisplayMode = DisplayModeType.Collapsed
                }
            };
            return l;
        }
        public int AddTopic(Topic topic) { return 0; }
        public void UpdateTopic(Topic topic) { }
        public void RemoveTopic(int topicId) { }

        /// <summary>
        /// Entity Id, example, a company or a person Id.
        /// All of the member methods of this Manager will
        /// operate under the context of this Entity Id.
        /// </summary>
        public int EntityId { get; set; }
    }
}
